﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Project
{
    public partial class AddPayroll : Form
    {
        public AddPayroll()
        {
            InitializeComponent();
        }

        private void btn_back_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btn_add_Click(object sender, EventArgs e)
        {
            Payrolls.addPayroll(txt_id.Text, Convert.ToInt32(txt_salary.Text), txt_date.Text, txt_description.Text);
        }
    }
}
